package videoExercises;

import java.util.TreeMap;

public class T1TreeMap {
    public static void main(String[] args) {
        TreeMap<TestStudent, String> tm = new TreeMap<>();
        TestStudent s1 = new TestStudent("小布丁", 20);
        TestStudent s2 = new TestStudent("王敏", 19);
        TestStudent s3 = new TestStudent("李小建", 18);
        tm.put(s1,"北京");
        tm.put(s2,"河南");
        tm.put(s3,"上海");
        System.out.println(tm);
    }
}